

main:test.o Sensor.o
	gcc test.o Sensor.o -o main -lwiringPi
	 
Sensor.o:Sensor.c Sensor.h Sensor_config.h
	gcc -c Sensor.c -lwiringPi
	
test.o:test.c Sensor.h
	gcc -c test.c -lwiringPi

clean:
	rm -fr *.o main